<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.w3.org/1999/xhtml" version="1.1">

<xsl:template match="content/debug">
<h2 class="title"><xsl:value-of select="title"/></h2>
<p><xsl:value-of select="content" disable-output-escaping="yes"/></p>
</xsl:template>

<xsl:template match="footer/debug">
<span id="debug">
    <img alt="Page render time">
        <xsl:attribute name="src"><xsl:value-of select="$templatePath"/>/images/icons/render-time.gif</xsl:attribute>
    </img>
    <xsl:value-of select="pageTime"/> |
    <xsl:value-of select="queryTime"/>
    <img alt="Number of queries">
        <xsl:attribute name="src"><xsl:value-of select="$templatePath"/>/images/icons/db-queries.gif</xsl:attribute>
    </img>
    <xsl:value-of select="queryCount"/>
</span>
</xsl:template>

</xsl:stylesheet>